package com.cf.limit.core.dao;

import com.cf.crud.mapper.BaseMapper;
import com.cf.limit.core.model.Black;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * game-server-BlackMapper
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/12 下午 05:19
 */
@Mapper
public interface BlackMapper extends BaseMapper<Black> {

    @Select("select * from black where ip=#{ip}")
    Black selectByIp(@Param("ip") String ip);
}
